<div id="main_content">
	<h3><?php echo $this->lang->line('Home_ChangePassWord'); ?></h3>
    <div class="table_list">   
    <form action="" method="post">
       <table border="0" class="add_data">
           <tr>
               <td colspan="2" style="text-align: center;"><span class="error"><?php echo isset($errMessage) ? $errMessage : ''; ?></span></td>
           </tr>
       		<tr>
            	<td align="right">
                	<label><?php echo $this->lang->line('Home_CurrentPasword'); ?> <font color="#FF0000">(*)</font></label>
                </td>
                <td>
                        <?php 
                            $optionCurrentPassword = array(
                                    'size'        => '30',                                   
                                    'name'        => 'txtCurrentPassword',                                   
                                    'type'        => 'password',                                   
                                    'value'       => isset($CurrentPassword) ? $CurrentPassword : '',
                                    'maxlength'   => '32'                                   
                                  );
                             echo form_input($optionCurrentPassword)  ;                            
                            ?>
                	
                </td>
                <td>
                    <span class="error"><?php echo form_error('txtCurrentPassword'); ?>
                </td>
            </tr>
       		<tr>
            	<td align="right">
                	<label><?php echo $this->lang->line('Home_NewPasword'); ?>  <font color="#FF0000">(*)</font></label>
                </td>
                <td>
                	<?php 
                            $optionNewPassword = array(
                                    'size'        => '30',                                   
                                    'name'        => 'txtNewPassword',                                   
                                    'type'        => 'password',                                   
                                    'value'       => isset($NewPassword) ? $NewPassword : '',
                                    'maxlength'   => '32'                                   
                                  );
                             echo form_input($optionNewPassword)  ;                            
                            ?>
                </td>
                <td>
                    <span class="error"><?php echo form_error('txtNewPassword'); ?>
                </td>
            </tr>
       		<tr>
            	<td align="right">
                	<label><?php echo $this->lang->line('Home_ConfimNewPasword'); ?>  <font color="#FF0000">(*)</font></label>
                </td>
                <td>
                	<?php 
                            $optionConfirmPassword = array(
                                    'size'        => '30',                                   
                                    'name'        => 'txtConfirmPassword',                                   
                                    'type'        => 'password',                                   
                                    'value'       => isset($ConfirmPassword) ? $ConfirmPassword : '',
                                    'maxlength'   => '32'                                   
                                  );
                             echo form_input($optionConfirmPassword)  ;                            
                            ?>
                </td>
                <td>
                    <span class="error"><?php echo form_error('txtConfirmPassword'); ?>
                </td>
            </tr>
       		<tr>
            	<td align="right">&nbsp;</td>            
                <td>
                	<input type="submit" name="btnSubmit" value="<?php echo $this->lang->line('MC008'); ?>">
                </td>
            </tr>                                                                                         
       </table> 
    </form>
    </div>
</div>

<div  id="dialog" title="<?php echo $dialogTitle; ?>">
    <?php echo isset($message) ? $message : ''; ?>
</div>
<script type="text/javascript">
     
<?php if (isset($flag) && $flag == TRUE): ?>
            $(function() {
                $("#dialog").dialog({
                    modal: true,
                    close: function() {
                        window.location.href = '<?php echo base_url('/'); ?>';
                    },
                    buttons: [{
                            text: '<?php echo $this->lang->line('MC019'); ?>',
                            click: function() {
                                window.location.href = '<?php echo base_url('/'); ?>';
                            }
                        }],
                });
            });
<?php elseif (isset($flag) && $flag == FALSE): ?>
            $(function() {
                $("#dialog").dialog({
                    modal: true,
                    close: function() {
                        $( this ).dialog( "close" );
                    },
                    buttons: [{
                            text: '<?php echo $this->lang->line('MC019'); ?>',
                            click: function() {
                                $("#dialog").dialog('close');
                            }
                        }]
                });
            });
<?php endif; ?>
   
</script>